|
|
|
|
|
|
|
Each third-party control used in an application should be listed in the applications overview comment section, providing the prefix used for the control, the full name of the control, and the name of the software vendor (see Table A.4). |
|
|
|
|
| Table A.4 Third-party Control Naming Standards. | | Prefix | Control Type | Vendor | | ctxt | Text box | Crescent | | sscbo | Sheridan combo box | Sheridan |
|
|
|
|
|
|
Variables are the building blocks of every application you create. As such, naming your variables is very important. When creating names for your variables, you need to make the purpose of the variable clear. The use of one-letter variable names should be avoided at all costs. This only leads to confusion when you look at the code at a later date. |
|
|
|
|
|
|
|
|
The following list presents some standards you should follow when creating your variable names: |
|
|
|
|
|
|
|
|
Avoid one-letter variables. |
|
|
|
|
|
|
|
|
Make all variable names mixed case. |
|
|
|
|
|
|
|
|
Each word or abbreviation should be capitalized. |
|
|
|
|
|
|
|
|
Do not use the underscore character in a variable name. |
|
|
|
|
|
|
|
|
Use Hungarian notation (see the following section). |
|
|
|
|
|
|
|
|
Preface each variable name with the type of data it contains. |
|
|
|
|
|
|
|
|
Abbreviate variables only when absolutely necessary. |
|
|
|
|
|